package newcrunch.typography;

/**
 * Class to store the typography's keys' position and spaces
 * @author WL
 */
public class KeyRecord 
{
    public String text;
    public int pos;
    public int line;
    public int column;
    public int spaces;
    
    public KeyRecord(String text, int pos, int line, int column)
    {
        this(pos, line, column, -1);
        this.text = text;
    }
    
    public KeyRecord(int pos, int line, int column, int spaces)
    {
        this.pos = pos;
        this.line = line;
        this.column = column;
        this.spaces = spaces;
    }
    
    @Override
    public String toString()
    {
        return String.valueOf(line) + ":" + String.valueOf(column) + ":" +
                String.valueOf(spaces);
    }
}
